﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Hangjing.Model;
using Hangjing.SQLServerDAL;

using System.Text;
using System.Text.RegularExpressions;
using Hangjing.SQLServerDAL.serverinterface;
// CopyRight (c) 2009-2012 HangJing Teconology. All Rights Reserved.
// zjf@ihangjing.com
// 2012-02-13

public partial class AndroidAPI_shop_Login_test : System.Web.UI.Page
{
    //APP/Android/Login.aspx?username=test&password=123456
    //返回 state：1 正常登录 -1 登录失败 0 账号不存在
    //{"userid":"1","state":"1","name":"配送员1号"}

    ShopAPP dal = new ShopAPP();

    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();


        Dictionary<string, object> dictionary = new Dictionary<string, object>();

        dictionary.Add("state", "1");
        dictionary.Add("msg", "");

        Dictionary<string, string> dictionarySign = new Dictionary<string, string>();
        dictionarySign.Add("appId", "aaaa");
        dictionarySign.Add("timeStamp", "abc");
        dictionarySign.Add("nonceStr", "dddd");
        dictionarySign.Add("package", "dddd");
        dictionarySign.Add("signType", "Md5");

        dictionarySign.Add("paySign", "aaaa");
        dictionary.Add("paydata", dictionarySign);


        Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(dictionary));
        Response.End();
    }
}
